package com.qf.medical.controller; /*
            
            " * ░░░░░░░░░░░░░░░░░░░░░░░░▄░░\n" +
            " * ░░░░░░░░░▐█░░░░░░░░░░░▄▀▒▌░\n" +
            " * ░░░░░░░░▐▀▒█░░░░░░░░▄▀▒▒▒▐\n" +
            " * ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐\n" +
            " * ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐\n" +
            " * ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌\n" +
            " * ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒\n" +
            " * ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐\n" +
            " * ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄\n" +
            " * ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒\n" +
            " * ▀▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒\n" +
            " * 单身狗就这样默默地看着你，一句话也不说。\n" +
            " */

import com.qf.medical.service.DoctorService;
import com.qf.medical.vo.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @EXPLAIN:
 * @author: 宋金锋
 * @Email: 2697586849@qq.com
 */
@RestController
@RequestMapping("/doctor/")
public class DoctorController {
    @Autowired
    private DoctorService doctorService;
    //条件查询
    @GetMapping("selectWhere.do")
    public PageBean selectWhere(String name, int page, int limit) {
        return doctorService.selectWhere(name, page, limit);
    }
}
